package edu.yuhf.dao;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import edu.yuhf.web.dao.iface.UserDao;
import spring.config.DataSourceConfig;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes={DataSourceConfig.class})
public class UserHibernateDaoImpl {

	@Resource
	UserDao userDao;
	
	@Test
	public void testCheckNameAndPassword(){
		System.out.println(userDao.checkNameAndPassword("admin","123"));
	}
}








